<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script src="/wondershare/js/jquery.js"></script> 
<link href="/wondershare/styles/main.css" rel="stylesheet" type="text/css" />
<link href="/wondershare/styles/general.css" rel="stylesheet" type="text/css" />
<style>
table tr td{ text-align:center;}
</style>
<title></title>
<script type="text/javascript">
 $(function(){
	<{foreach from=$category_listdata item=data  }>
	  $('input[name="categorylist[]"]').each(function () {

	   if($(this).val() == '<{$data}>' )
	   {
	    $(this).attr('checked','checked');
	   }
  	  
       }); 

	<{/foreach}>
	});
	
function get_checked_category()
{
		var id = new Array();
		$('input[name = "categorylist[]"]:checked').each(function(){
			id.push(this.value);
		});
	
		return id.join(",");
}
	
function get_checked_category_name()
{
		var name = new Array();
		$('input[name = "categorylist[]"]:checked').each(function(){

			name.push($(this).attr('title'));
		});

		return name.join("\n");
}
</script>
</head>
<body style="width:710px;">
   <table width="100%" cellspacing="1" cellpadding="2" id="list-table" class="list-div"  style="margin-top:10px;" >
  
    <tr>
      <th width="20%">选择</th> 
      <th width="30%">FAQ分类ID</th>
      <th width="50%">FAQ分类名称</th>
    </tr>
    <{foreach from=$category__info key=key item=info}>
	  <tr>
      <td width="20%"><input type="checkbox"  title="<{$info.type_name}>" name="categorylist[]"  value="<{$info.type_id}>"></td>
      <td width="30%"><{$info.type_id}></td>
     <td width="50%"><{$info.type_name}></td>
	 </tr>
    <{/foreach}>
  </table>
</body>
</html>
